import React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import BottomTabs from './BottomTabs';
import SettingScreen from '@/screens/SettingScreen';
import VedioListScreen from '@/screens/PlatformVedioListScreen';
import PlatformVedioScreen from '@/screens/PlatformVedioScreen';
import CustomHeader from '@/components/CustomHeader';

const Stack = createNativeStackNavigator();

function RootStack() {
  return (
    <Stack.Navigator screenOptions={{ headerShown: false }}>
      <Stack.Screen
        name="BottomTabs"
        component={BottomTabs}
      />
      {/* 其他屏幕 */}
      <Stack.Screen name="SettingScreen" component={SettingScreen} />
      <Stack.Screen name="VedioListScreen" component={VedioListScreen}
        options={{
          headerShown: true,
          header: (props) => <CustomHeader {...props} title={"视频解析"}/>,
        }} />
      <Stack.Screen name="PlatformVedioScreen" component={PlatformVedioScreen}
        options={{
          headerShown: true,
          header: (props) => <CustomHeader {...props}  title={"请选择需要观看的视频"}/>,
        }}
      />
    </Stack.Navigator>
  );
}

export default RootStack;
